package com.cam.framework.system.common.dict;

import com.cam.framework.annotation.SysDictAnno;
import com.cam.framework.crud.SysDictInterface;

@SysDictAnno
public enum SysYesNoDict implements SysDictInterface<String, String, SysYesNoDict> {
    YES("是", "1"),
    NO("否", "0");

    private final String label;

    private final String value;

    SysYesNoDict(String label, String value) {
        this.label = label;
        this.value = value;
    }

    @Override
    public String  getLabel() {
        return label;
    }

    @Override
    public String getValue() {
        return value;
    }

    public static SysYesNoDict getDictByValue(String value) {
        return null;
    }
}
